<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>公司名片详情</title>
</head>
<body>
<div class="place-all">
    <div class="place-bottom">
        <div class="stem">
            <div class="stem-content">
                <div class="panel panel-inverse">
                    <div class="menu_category">
                        名片详情
                    </div>
                    <div class="panel-body">
                        <div class="row" style="margin: 15px 0;">
                            <div class="col-md-1">公司简称</div>
                            <div class="col-md-11">
                                <input type="text" placeholder="公司简称" class="form-control"
                                       id="short_name" value="${detail.shortName}">
                            </div>
                        </div>
                        <div class="row" style="margin: 15px 0;">
                            <div class="col-md-1">公司名称</div>
                            <div class="col-md-11">
                                <input type="text" class="form-control"
                                       id="company_name" value="${detail.companyName}">
                            </div>
                        </div>
                        <div class="row" style="margin: 15px 0;" id="author_div">
                            <div class="col-md-1">成立日期</div>
                            <div class="col-md-11">
                                <input type="text" class="form-control"
                                       value="<fmt:formatDate value="${detail.establishedTime}" type="date" pattern="yyyy-MM-dd"/>">
                            </div>
                        </div>
                        <div class="row" style="margin: 15px 0;">
                            <div class="col-md-1">类型</div>
                            <div class="col-md-11">
                                <input type="text" class="form-control"
                                       value="${detail.category == '0' ? '加工商' : (detail.category == 1 ? '模具商' : '设备商')}">
                            </div>
                        </div>

                        <div class="row" style="margin: 15px 0;">
                            <div class="col-md-1">地址</div>
                            <div class="col-md-11">
                                <input type="text" class="form-control"
                                       value="${detail.address}">
                            </div>
                        </div>

                        <div class="row" style="margin: 15px 0;" id="publish_date_div">
                            <div class="col-md-1">联系人</div>
                            <div class="col-md-11">
                                <input type="text" class="form-control publish_date"
                                       id="publish_date" value="${detail.linkMan}">
                            </div>
                        </div>

                        <div class="row" style="margin: 15px 0;" id="effective_date_div">
                            <div class="col-md-1">联系电话</div>
                            <div class="col-md-11">
                                <input type="text" class="form-control effective_date"
                                       value="${detail.mobile}">
                            </div>
                        </div>

                        <div class="row" style="margin: 15px 0;" id="article_no_div">
                            <div class="col-md-1">简称</div>
                            <div class="col-md-11">
                                <input type="text" class="form-control"
                                       value="${detail.descInfo}">
                            </div>
                        </div>


                        <div class="row" style="margin: 15px 0;" id="summary_info_div">
                            <div class="col-md-1">图片</div>
                            <div class="col-md-11">
                                    <textarea rows="5" class="form-control" placeholder=""
                                              id="summary_info">${detail.picture}</textarea>

                            </div>
                        </div>
                        <div class="row" style="margin: 15px 0;">
                            <div class="col-md-1"></div>
                            <div class="col-md-11" style="text-align: center">
                                <button class="btn btn-sm btn-success" type="submit" style="width: 120px;"
                                        onclick="window.history.back(-1)">
                                    返回
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<script src="${pageContext.request.contextPath}/static/js/plugins/jquery-ui/ui/minified/jquery-ui.min.js"></script>
<script src="${pageContext.request.contextPath}/static/js/plugins/bootstrap/js/bootstrap.min.js"></script>
</body>
</html>
